
        <f:view>
            <h:form>
                <h:outputText value="No results were found." rendered="#{ForumsSession.handleFound==null}"/>
                <h:outputText rendered="#{ForumsSession.handleFound!=null}" value="Messages posted by: #{ForumsSession.handleFound.name}" />
                <br><br>
                <h:outputText rendered="#{empty ForumsSession.handleFound.messages}" value="None" />
                <rich:dataTable rendered="#{!empty ForumsSession.handleFound.messages}" id="nicksMessages" rows="50" value="#{ForumsSession.handleFound.messages}" var="message" border="1" >
                    <rich:column>
                        <f:facet name="header">
                            <h:outputText value="Name" />
                        </f:facet>
                        <h:commandLink value="#{message.subject}" target="menu" action="tHandles">
                            <f:setPropertyActionListener target="#{ForumsSession.currentMessage}" value="#{message}" />
                            <f:setPropertyActionListener target="#{ForumsSession.currentThread}" value="#{message.topic}" />
                            
                            <a4j:support event="onclick" oncomplete="window.location.href='/site/faces/forum/message.jsp';"/>
                        </h:commandLink>
                    </rich:column>
                    <rich:column>
                        <f:facet name="header">
                            <h:outputText value="Content" />
                        </f:facet>
                        <h:outputText value="#{message.content}" />
                    </rich:column>
                    
                </rich:dataTable>

                
            </h:form>
        </f:view>

